package webmarket.test.runner;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.Persistence;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import webmarket.model.ReadLog;

public class Runner {

	private static final Logger log = LogManager.getLogger();

	public static void main(String[] args) {
//		Marker parent = MarkerManager.getMarker("parent");
//		Marker child1 = MarkerManager.getMarker("child1", parent);
//		Marker child2 = MarkerManager.getMarker("child2", parent);
//		//		log.fatal(parent, "parentFatal");
//		//		log.fatal(child1, "child2Fatal");
//		//		log.fatal(child2, "child1Fatal");
//		Marker child3 = MarkerManager.getMarker("child21", child2);
//		Marker child4 = MarkerManager.getMarker("zzzzz", child3);
//		Marker child5 = MarkerManager.getMarker("aaaa", child4);
		//log.fatal(child5,"Childish");
		EntityManager em = Persistence.createEntityManagerFactory("IntegraltWebPiac").createEntityManager();
		List<ReadLog> results = em.createQuery("SELECT r FROM ReadLog r").getResultList();

		for (ReadLog log : results) {
			
		}
	}

}
